package com.atguigu.orderservice.client;

import com.atguigu.commonutils.ordervo.UcenterMemberOrder;
import com.atguigu.orderservice.client.impl.UcenterClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "service-ucenter",fallback = UcenterClientImpl.class)//加上要调用的服务名和熔断器的实现类
@Component
public interface UcenterClient {

    //（订单）根据用户id获取用户信息
    @PostMapping("/ucenterservice/member/getInfotwo/{id}")
    public UcenterMemberOrder getInfotwo(@PathVariable("id") String id);

}
